/**
 * @ClassName LC136
 * @Author ykx
 * @Date 2024/3/22 8:45
 * @Version 1.0
 */
public class LC136 {
    public int singleNumber(int[] nums) {
        int result = 0;
        for (int num : nums) {
            result = result ^ num;
        }
        return result;
    }
}
